import { Action, Actor } from 'iflux2'

export const DomainTypes = {
    RECEIVE_DOMAIN_DATA : 'RECEIVE_DOMAIN_DATA'
} 

export default class DomainActor extends Actor {
    defaultState(){
        return {
            domain:{
                adminId:'',
                domainName:"system",
                domainUrl:"http://",
                dtype:"c",
                id:4772
            }
        }
    }

    @Action(DomainTypes.RECEIVE_DOMAIN_DATA)
    setDomain(state,domain){
        return state.set('domain',domain);
    }
}